home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Xconq 7.0d37 / source / SelFile / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-04-13  |  1.5 KB  |  94 lines  |  [TEXT/R*ch]

  1. # Makefile for SelFile.
  2.  
  3. prefix = .
  4.  
  5. exec_prefix = $(prefix)
  6. bindir = $(exec_prefix)
  7. # this should be tweaked
  8. libdir = $(srcdir)/../lib
  9. datadir = $(prefix)/lib
  10. mandir = $(prefix)/man
  11. man6dir = $(mandir)/man6
  12. infodir = $(prefix)/info
  13. docdir = $(datadir)/doc
  14.  
  15. srcdir = .
  16.  
  17. SHELL = /bin/sh
  18.  
  19. INSTALL = `cd $(srcdir)/..;pwd`/install.sh -c
  20. INSTALL_PROGRAM = $(INSTALL)
  21. INSTALL_DATA = $(INSTALL)
  22.  
  23. CC = cc
  24.  
  25. CFLAGS = -g
  26.  
  27. AR = ar
  28.  
  29. RANLIB = ranlib
  30.  
  31. # Ditto for X font libraries.
  32. #XFONTPATH = /usr/local/X11/lib/fonts/misc
  33.  
  34. X11_LIB = -lXmu -lX11
  35.  
  36. XAW_LIB = -lXaw -lXt $(X11_LIB) -lXext -lm
  37.  
  38. # Override this in order to point at the Xpm include files.
  39.  
  40. XPM_INCLUDE_FLAGS =
  41.  
  42. # Override this in order to point at the Xpm library.
  43.  
  44. XPM_LIB = -lXpm
  45.  
  46. WITH_LIBS = 
  47.  
  48. # Host and target-dependent makefile fragments come in here.
  49. ####
  50. # End of host and target-dependent makefile fragments.
  51.  
  52. OBJ =    SelFile.o \
  53.     Path.o \
  54.     Dir.o \
  55.     Draw.o
  56.  
  57. UNIX_CFLAGS = -DSELFILE -DHOME_ON_DEMAND
  58.  
  59. ALL_CFLAGS = $(CFLAGS) $(REQD_CFLAGS) $(UNIX_CFLAGS) -I$(srcdir) $(X11_INCLUDE_FLAGS)
  60.  
  61. .c.o:
  62.     $(CC) -c $(ALL_CFLAGS) $<
  63.  
  64. # Do it all.
  65.  
  66. all:    libXgnu.a
  67.  
  68. libXgnu.a: $(OBJ)
  69.     rm -f libXgnu.a
  70.     $(AR) ru libXgnu.a $(OBJ)
  71.     $(RANLIB) libXgnu.a
  72.  
  73. install: all install-only
  74.  
  75. install-only:
  76.  
  77. # Cleanliness support.
  78.  
  79. clean:
  80.     rm -f *.o lint.out core
  81.  
  82. distclean: clean
  83.     rm -f Makefile config.status
  84.  
  85. extraclean: distclean
  86.     rm -f *~* .*~*
  87.  
  88. realclean: distclean
  89.  
  90. Makefile: Makefile.in $(host_makefile_frag) $(target_makefile_frag)
  91.     $(SHELL) config.status
  92.  
  93. # Dependencies.
  94.